package com.book.bookshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.bookshop.entity.Order;
import com.book.bookshop.entity.OrderQueryVo;

import java.util.List;


public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 分页查询订单
     * @param orderQueryVo
     * @return
     */
    List<Order> findOrderAndOrderDetailListByUser(OrderQueryVo orderQueryVo);


    /**
     * 查询记录总数
     */
    Integer findOrderCountByUser(OrderQueryVo orderQueryVo);
}
